import Vue from 'vue'
import Router from 'vue-router'
//import Hello from '@/components/Hello'
import Home from '@/layout'
import GetDemand from '@/views/demand'
import GetDemandDetail from '@/views/demand/detail'
import ResumeUpload from '@/views/resumeScreening/resumeUpload'
import ResumeUploadDetail from '@/views/resumeScreening/resumeUpload/detail'
import ResumeSelect from '@/views/resumeScreening/resumeSearch'
import ResumeSelectDetail from '@/views/resumeScreening/resumeSearch/detail'
import Arrange from '@/views/interviewManagement/interviewArrangement'
import ArrangeDetail from '@/views/interviewManagement/interviewArrangement/detail'
import Inquiries from '@/views/interviewManagement/interviewSearch'
import InquiriesDetail from '@/views/interviewManagement/interviewSearch/detail'
import Quoted from '@/views/interviewManagement/orderConfirmation'
import QuotedDetail from '@/views/interviewManagement/orderConfirmation/detail'
import Login from '@/views/Login'
import IndexHome from '@/views/home/index'
import Entrance from '@/views/outsourcedPM/admissionRequire'
import EntranceDetail from '@/views/outsourcedPM/admissionRequire/detail'
import EntranceApply from '@/views/outsourcedPM/admissionRequire/form'
import PeopleInfo from '@/views/outsourcedPM/personnelInformation'
import PeopleInfoDetail from '@/views/outsourcedPM/personnelInformation/detail'
import PeopleOut from '@/views/outsourcedPM/exitManagement'
import PeopleOutDetail from '@/views/outsourcedPM/exitManagement/detail'
import ManHourSelect from '@/views/costManagement/attendance'
import BillingRollup from '@/views/costManagement/rollup'
import BillingRollupDetail from '@/views/costManagement/rollup/detail'
import NotFoundPage from '@/views/NotFoundPage'

Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      //name: 'Home',
      components: {
          Login: '',
          Home: Home
      },
      children: [
        {
          path: '/',
          name: 'Home',
          components: {
            rightContent: IndexHome
          }
        },
        {
          path: '/getdemand',
          name: 'GetDemand',
          components: {
              rightContent: GetDemand
          }
        },
        {
          path: '/getdemand/detail/:id',
          name: 'GetDemandDetail',
          components: {
              rightContent: GetDemandDetail
          }
        },
        {
          path: '/resume',
          name: 'Resume',
          components: {
              rightContent: ResumeUpload
          }
        },
        {
          path: '/resume/detail/:id',
          name: 'ResumeDetail',
          components: {
              rightContent: ResumeUploadDetail
          }
        },
        {
          path: '/selectres',
          name: 'SelectRes',
          components: {
              rightContent: ResumeSelect
          }
        },
        {
          path: '/selectres/detail/:id',
          name: 'SelectResDetail',
          components: {
              rightContent: ResumeSelectDetail
          }
        },
        {
          path: '/arrange',
          name: 'Arrange',
          components: {
              rightContent: Arrange
          }
        },
        {
          path: '/arrange/detail/:id',
          name: 'ArrangeDetail',
          components: {
              rightContent: ArrangeDetail
          }
        },
        {
          path: '/selectint',
          name: 'SelectInt',
          components: {
              rightContent: Inquiries
          }
        },
        {
          path: '/selectint/detail/:id',
          name: 'SelectIntDetail',
          components: {
              rightContent: InquiriesDetail
          }
        },
        {
          path: '/quoted',
          name: 'Quoted',
          components: {
              rightContent: Quoted
          }
        },
        {
          path: '/quoted/detail/:id',
          name: 'QuotedDetail',
          components: {
              rightContent: QuotedDetail
          }
        },
        {
          path: '/entrance',
          name: 'Entrance',
          components: {
              rightContent: Entrance
          }
        },
        {
          path: '/entrance/detail/:id',
          name: 'EntranceDetail',
          components: {
              rightContent: EntranceDetail
          }
        },
        {
          path: '/entrance/apply',
          name: 'EntranceApply',
          components: {
              rightContent: EntranceApply
          }
        },
        {
          path: '/peopleinfo',
          name: 'PeopleInfo',
          components: {
              rightContent: PeopleInfo
          }
        },
        {
          path: '/peopleinfo/detail/:id',
          name: 'PeopleInfoDetail',
          components: {
              rightContent: PeopleInfoDetail
          }
        },
        {
          path: '/peopleout',
          name: 'PeopleOut',
          components: {
              rightContent: PeopleOut
          }
        },
        {
          path: '/peopleout/detail/:id',
          name: 'PeopleOutDetail',
          components: {
              rightContent: PeopleOutDetail
          }
        },
        {
          path: '/hourselect',
          name: 'HourSelect',
          components: {
              rightContent: ManHourSelect
          }
        },
        {
          path: '/billingrollup',
          name: 'BillingRollup',
          components: {
              rightContent: BillingRollup
          }
        },
        {
          path: '/billingrollup/detail',
          name: 'BillingRollupDetail',
          components: {
              rightContent: BillingRollupDetail
          }

        }
      ]
      },
      {
        path: '/login',
        name: 'Login',
        components: {
            Login: Login,
            Home: ''
        }
      },
      {
        path: '*',
        components: {
            Login: '',
            Home: NotFoundPage
        }
      }
  ]
})
